/**
 * 
 */
package com.desitek.thunder.repository;

import java.util.List;

import com.desitek.thunder.entity.UserGroup;

/**
 * @author dt
 * 
 */
public interface IGroupRepository<T> extends IGenericRepository<T> {

	void createGroup(T group);

	void disableGroup(T group);

	void renameGroup(String oldName, String newName);

	boolean isGroupDisabled(String groupName);

	UserGroup findByGroupName(String groupName);

	List<T> listGroup();

	List<T> listGroupByUser(String userName);

}
